package com.sg.dto.biz.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffApplexConfRelDto
 * @使用场景
 */
@Data
public class BffApplexConfRelDto implements Serializable {

    /**
     * 应用实例配置关系ID
     */
    @ApiModelProperty("应用实例配置关系ID")
    private String applexRelId;

    /**
     * 应用对象类型 TENANT_SPACE:租户空间 ORG:组织 EVA_THEME:评价主题 EVA_TEMP:评价模板 PLATFORM:平台
     */
    @ApiModelProperty("应用对象类型")
    private String applObjType;

    /**
     * 应用实例ID
     */
    @ApiModelProperty("应用实例ID")
    private String applexId;

    /**
     * 对象名称
     */
    @ApiModelProperty("对象名称")
    private String objectName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffApplexConfRelDto that = (BffApplexConfRelDto) o;
        return applexRelId == that.applexRelId && applObjType == that.applObjType && applexId == that.applexId && objectName == that.objectName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), applexRelId, applObjType, applexId, objectName);
    }

}
